
function search()
{
    var region = "";
    var title = "";

    $("select[name=filter-region] option:selected").each(function() {
        region += $(this).val();
    });
    $("select[name=filter-title] option:selected").each(function() {
        title += $(this).val();
    });
    window.location = '<?php echo site_url("/hr/final_results/index") ?>' + '/' + region + '/' + title;
}

$(document).ready(function() {

    $('select[name=filter-region]').change(function() {
        search();
    });

    $('select[name=filter-title]').change(function() {
        search();
    });


});

